package com.eportal.service.impl;

import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;
import javax.servlet.http.HttpSession;

import org.apache.commons.lang.StringUtils;
import org.apache.log4j.Logger;
import org.apache.struts2.ServletActionContext;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.eportal.aop.LogAnnotation;
import com.eportal.api.MdOpenApi;
import com.eportal.api.MdOpenQryKeysJson.Key;
import com.eportal.base.BaseDAO;
import com.eportal.domain.TKeys;
import com.eportal.domain.TKeysProlong;
import com.eportal.domain.TLock;
import com.eportal.domain.TUsers;
import com.eportal.exception.MdKnownRunTimeException;
import com.eportal.exception.NotUniqueException;
import com.eportal.service.TAgentService;
import com.eportal.service.TKeysProlongService;
import com.eportal.service.TKeysService;
import com.eportal.service.TLocksService;
import com.eportal.service.TUsersService;
import com.eportal.util.DateUtils;
import com.eportal.util.ValidateUtil;
import com.framework.jqgrid.JqGridPager;

@Service("tKeysProlongService")
public class TKeysProlongServiceImpl  implements TKeysProlongService{

	
	@Resource(name="dao")
	private BaseDAO dao;
	
	
	@Override
	public TKeysProlong get(Long id) {
		// TODO Auto-generated method stub
		return (TKeysProlong)dao.getById(TKeysProlong.class, id);
	}

	@Override
	public void delete(Long id) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void update(TKeysProlong keysProlong) throws Exception {
		dao.update(keysProlong);
		
	}

	@Override
	public void delete(List<Long> ids) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void add(TKeysProlong keysProlong) throws Exception {
		dao.save(keysProlong);
		
	}
	
}
